<?xml version="1.0" encoding="utf-8"?>
<rsp stat="<?php echo $stat ?>">
<?php if($stat == 'ok'): ?>
    <user <?php foreach ($user as $key => $value): ?><?php echo $key ?>="<?php echo $value ?>" <?php endforeach; ?> />
<?php else: ?>
    <err code="<?php echo $error_code ?>" msg="<?php echo $error_msg ?>" />
<?php endif; ?>
</rsp>